<?php
require 'db.php';
require 'function.php';

$id = $_GET['id'];
$shop = new Manager($link);
$query = $shop->deleteShop($id);
if ($query){
    header("Location:m_shop.php");
}else{
    echo "<script>alert('删除失败！');</script>";
    echo "<script>history.go(-1);</script>";
    exit();
}




?>